import {axios} from '@/utils/request'
import qs from 'qs'

const apiPath = {
    login: '/account/passport/form/login'
}

/**
 * 用户登录
 * @param {*} data
 */
export function login(data) {
    return axios({
        url: apiPath.login,
        method: 'post',
        data: qs.stringify(data),
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}